package org.sample.action;
import org.sample.service.TutorialFinderService;

public class TutorialAction {
	
	private String bestTutorialSite;
	private String language;
	
	public String execute(){
		TutorialFinderService tutorialFinderService = new TutorialFinderService();

		System.out.println("pass parameter =" + getLanguage());
		
		setBestTutorialSite(tutorialFinderService.getBestTutorialSite(getLanguage()));

		return "success";		
	}
	
	public void setBestTutorialSite(String bestTutorialSite){
		this.bestTutorialSite = bestTutorialSite;
	}
	
	public String getBestTutorialSite(){
		return bestTutorialSite;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}	
	
}
